/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "销售订单明细", TableName = "shoporderdetailsmodel")]
    public partial class shoporderdetailsmodel : BaseEntity
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        [Display(Name = "Id")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long Id { get; set; }

        /// <summary>
        /// 销售订单外键Id
        /// </summary>
        [Display(Name = "销售订单外键Id")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long ShopOrderId { get; set; }

        /// <summary>
        /// 货品外键Id
        /// </summary>
        [Display(Name = "货品外键Id")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long GoodsId { get; set; }

        /// <summary>
        /// 销售货品数量
        /// </summary>
        [Display(Name = "销售货品数量")]
        [Column(TypeName = "int")]
        [Required(AllowEmptyStrings = false)]
        public int ShopOrderNum { get; set; }

        /// <summary>
        /// 销售货品单价
        /// </summary>
        [Display(Name = "销售货品单价")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long ShopOrderMoney { get; set; }

        /// <summary>
        /// 销售货品总金额
        /// </summary>
        [Display(Name = "销售货品总金额")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long ShopOrderAllMoney { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "varchar(30)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "varchar(30)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Display(Name = "是否删除")]
        [Column(TypeName = "tinyint")]
        [Required(AllowEmptyStrings = false)]
        public byte IsDelete { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        [Display(Name = "创建人ID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        /// 修改人ID
        /// </summary>
        [Display(Name = "修改人ID")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }
    }
}
